@extends('admin.main')
@section('content')
    <div class="admin-content">
        <div class="am-cf am-padding am-padding-bottom-0">
            <div class="am-fl am-cf">
                <strong class="am-text-primary am-text-lg">后台设置</strong>
                /
                <small>企业信息</small>
            </div>
        </div>
        <hr>
        <div class="am-g">
            @include('admin.layouts.adminInfo')
            <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <tbody id="tbody-alert">
                    {{--<tr>--}}
                        {{--<td class="am-hide-sm-only" width="200">--}}
                            {{--手机号码：--}}
                        {{--</td>--}}
                        {{--<td width="500">--}}
                            {{--{{$data->mobile}}--}}
                        {{--</td>--}}
                    {{--</tr>--}}
                    <tr>
                        <td class="am-hide-sm-only">
                            企业类型：
                        </td>
                        <td>
                            {{$data->cateName}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            法人姓名：
                        </td>
                        <td>
                            {{$data->legal_name}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            法人性别：
                        </td>
                        <td>
                            {{$data->legal_sex==1?'男':'女'}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            法人手机号码：
                        </td>
                        <td>
                            {{$data->legal_mobile}}
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            身份证正面：
                        </td>
                        <td>
                            @if($imgs=$data->legal_idcard_imgs)
                            @if($imgs[0] && file_exists(ltrim($imgs[0],'/')))
                                <img src="{{$imgs[0]}}" width="500">
                            @endif
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            身份证反面：
                        </td>
                        <td>
                            @if($imgs=$data->legal_idcard_imgs)
                                @if($imgs[1] && file_exists(ltrim($imgs[1],'/')))
                                    <img src="{{$imgs[1]}}" width="500">
                                @endif
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td class="am-hide-sm-only">
                            身份证手持正面：
                        </td>
                        <td>
                            @if($imgs=$data->legal_idcard_imgs)
                                @if($imgs[2] && file_exists(ltrim($imgs[2],'/')))
                                    <img src="{{$imgs[2]}}" width="500">
                                @endif
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align:center;">
                            <h2>企业信息</h2>
                        </td>
                    </tr>
                    <tr>
                        <td>企业名称：</td>
                        <td>{{$data->com_name}}</td>
                    </tr>
                    <tr>
                        <td>企业座机：</td>
                        <td>{{$data->com_tel}}</td>
                    </tr>
                    <tr>
                        <td>企业传真：</td>
                        <td>{{$data->com_fax}}</td>
                    </tr>
                    <tr>
                        <td>企业地址：</td>
                        <td>{{$data->com_address}}</td>
                    </tr>
                    <tr>
                        <td>企业地址全称：</td>
                        <td>{{$data->cityFullName}}</td>
                    </tr>
                    <tr>
                        <td>客户满意度：</td>
                        <td>{{$data->cus_like}}%</td>
                    </tr>
                    <tr>
                        <td>品质合格率：</td>
                        <td>{{$data->quality}}%</td>
                    </tr>
                    <tr>
                        <td>合同履行率：</td>
                        <td>{{$data->pact}}%</td>
                    </tr>
                    <tr>
                        <td>业务类型：</td>
                        <td>
                            @if($outTypeNames=$data->outTypeNames)
                                @foreach($outTypeNames as $outTypeName)
                                    {{$outTypeName}} &nbsp; &nbsp;
                                @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>年龄范围：</td>
                        <td>{{$data->age_range}}</td>
                    </tr>
                    <tr>
                        <td>公司介绍：</td>
                        <td>{{$data->detail}}</td>
                    </tr>
                    @if($params=$data->params && $fields=$data->paramFields)
                        @foreach($data->params as $key => $param)
                    <tr>
                        <td>{{$fields[$key]}}：</td>
                        <td>{{$param}}</td>
                    </tr>
                        @endforeach
                    @endif
                    </tbody>
                </table>
                <button type="button" class="am-btn am-btn-primary"
                        onclick="history.go(-1);">返回</button>
                <br><br><br>
            </div>
        </div>
    </div>
@stop